package com.github.shiqiyue.springclouddemoeurekaclient.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/***
 * 由wwy创建于2018/6/4
 */
@RestController
public class IndexController {

    @Value("${server.port}")
    private int port;

    @RequestMapping("hi")
    public String hi(String name) {
        return "hi" + name + ",port:" + port;
    }

}
